#include "RegTest.h"
#include "LvlOne.h"


void reg_test_total()
{
	bool bIsBroken;
	bIsBroken = false;
	
	if(sum_multiple_three_and_five(1000) == 233168 )
	{
		printf ("Reg test for problem 1 is OK\n");
	}
	else
	{
		printf ("Reg test for problem 1 is ERROR\n");
		bIsBroken = true;
	}

	if(sum_even_fibonacci(4000000) == 4613732 )
	{
		printf ("Reg test for problem 2 is OK\n");
	}
	else
	{
		printf ("Reg test for problem 2 is ERROR\n");
		bIsBroken = true;
	}

	if(largest_divisor(600851475143)  == 6857 )
	{
		printf ("Reg test for problem 3 is OK\n");
	}
	else
	{
		printf ("Reg test for problem 3 is ERROR\n");
		bIsBroken = true;
	}

	if(find_largest_palindromic(3)  == 906609 )
	{
		printf ("Reg test for problem 4 is OK\n");
	}
	else
	{
		printf ("Reg test for problem 4 is ERROR\n");
		bIsBroken = true;
	}

	if(divisible_by_range_of_numbers(20) == 232792560)
	{
		printf ("Reg test for problem 5 is OK\n");
	}
	else
	{
		printf ("Reg test for problem 5 is ERROR\n");
		bIsBroken = true;
	}

	if(sum_sqr_diff(1, 100) == 25164150)
	{
		printf ("Reg test for problem 6 is OK\n");
	}
	else
	{
		printf ("Reg test for problem 6 is ERROR\n");
		bIsBroken = true;
	}


	if(get_ith_prime_number(10001) == 104743)
	{
		printf ("Reg test for problem 7 is OK\n");
	}
	else
	{
		printf ("Reg test for problem 7 is ERROR\n");
		bIsBroken = true;
	}

	//return bIsBroken;
}